home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVRLF / IMEDSK3.C < prev    next >
C/C++ Source or Header  |  1994-06-01  |  22KB  |  895 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    baseV00DialogId ;
  9. extern int    baseV00BtnId[3] ;
  10. extern int    selectFuncV00Org() ;
  11. extern int    selectFuncV00Ply() ;
  12. extern int    baseV00InputDialogId[2] ;
  13. extern int    baseV00InputMesId[2] ;
  14. extern int    selectFuncV00Out() ;
  15. extern int    baseV00MesId[5] ;
  16. extern int    baseUnderTifDialogId ;
  17. extern int    baseUnderTifBtnId[1] ;
  18. extern int    selectFuncUnderTif() ;
  19. extern int    baseUnderMesId[1] ;
  20. extern int    baseUnderInputDialogId ;
  21. extern int    baseUnderInputMesId ;
  22. extern int    baseWaitDialogId ;
  23. extern int    baseWDBtnId[1] ;
  24. extern int    baseWDOkFunc() ;
  25. extern int    baseWMesId[2] ;
  26. extern int    baseSetupDialogId ;
  27. extern int    baseSetupDialogId2 ;
  28. extern int    baseSetupMesId[15] ;
  29. extern int    baseSetupNumId[6] ;
  30. extern int    baseSetupNumFunc() ;
  31. extern int    setupTIconId[2] ;
  32. extern int    setupTIconFunc() ;
  33. extern int    setupTIconId2[4] ;
  34. extern int    setupTIconFunc2() ;
  35. extern int    baseSDBtnId[2] ;
  36. extern int    baseSDOkFunc() ;
  37.  
  38. #define ALIGN    4
  39. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  40.  
  41. /*    MMI_init ùpâfü[â^    */
  42.  
  43. /*    âwâbâ_    */
  44.  
  45. MMIINIT    initDataIMEDSK3 = { "MmiInit",  52, 0 } ;
  46.  
  47. /* baseV00DialogId */
  48.  
  49. static MMIPACKET d001 = {    &baseV00DialogId,
  50.                             NULL,
  51.                             &MJ_DIALOGL40,
  52.                             OFFSET(DIALOGL40),
  53.                             MS_NONE
  54.                         } ;
  55. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  56.                               30,  96, 306, 288,15, 6, 8,
  57.                             MS_NONEL40,
  58.                             NULL,   0,   0
  59.                         } ;
  60.  
  61. /* baseV00BtnId[0] */
  62.  
  63. static MMIPACKET d002 = {    &baseV00BtnId[0],
  64.                             &baseV00DialogId,
  65.                             &MJ_DBUTTONL40,
  66.                             OFFSET(DBUTTONL40),
  67.                             MS_NONE
  68.                         } ;
  69. static DBUTTONL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  70.                               37, 114, 299, 162, 7, 4, 8,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             selectFuncV00Org,
  73.                             0x0000
  74.                         } ;
  75.  
  76. /* baseV00BtnId[2] */
  77.  
  78. static MMIPACKET d003 = {    &baseV00BtnId[2],
  79.                             &baseV00DialogId,
  80.                             &MJ_DBUTTONL40,
  81.                             OFFSET(DBUTTONL40),
  82.                             MS_NONE
  83.                         } ;
  84. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  85.                               37, 175, 299, 198, 7, 4, 8,
  86.                             MS_PANELL40 | MS_FRAMEL40,
  87.                             selectFuncV00Ply,
  88.                             0x0000
  89.                         } ;
  90.  
  91. /* baseV00InputDialogId[0] */
  92.  
  93. static MMIPACKET d004 = {    &baseV00InputDialogId[0],
  94.                             &baseV00DialogId,
  95.                             &MJ_DIALOGL40,
  96.                             OFFSET(DIALOGL40),
  97.                             MS_NONE
  98.                         } ;
  99. static DIALOGL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
  100.                               44, 137, 293, 156,15, 4, 8,
  101.                             MS_DFRAMEL40 | MS_FRAMEL40,
  102.                             NULL,   0,   0
  103.                         } ;
  104.  
  105. /* baseV00InputMesId[0] */
  106.  
  107. static MMIPACKET d005 = {    &baseV00InputMesId[0],
  108.                             &baseV00InputDialogId[0],
  109.                             &MJ_MSGL40,
  110.                             OFFSET(MSGL40),
  111.                             MS_NONE
  112.                         } ;
  113. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  114.                               47, 137, 289, 156, 0,15, 8,
  115.                             MS_NONEL40,
  116.                             " ",
  117.                                1,  12,  12,
  118.                             MS_NONEL40,
  119.                                0,   0
  120.                         } ;
  121.  
  122. /* baseV00BtnId[1] */
  123.  
  124. static MMIPACKET d006 = {    &baseV00BtnId[1],
  125.                             &baseV00DialogId,
  126.                             &MJ_DBUTTONL40,
  127.                             OFFSET(DBUTTONL40),
  128.                             MS_NONE
  129.                         } ;
  130. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  131.                               37, 211, 299, 259, 7, 4, 8,
  132.                             MS_PANELL40 | MS_FRAMEL40,
  133.                             selectFuncV00Out,
  134.                             0x0000
  135.                         } ;
  136.  
  137. /* baseV00InputDialogId[1] */
  138.  
  139. static MMIPACKET d007 = {    &baseV00InputDialogId[1],
  140.                             &baseV00DialogId,
  141.                             &MJ_DIALOGL40,
  142.                             OFFSET(DIALOGL40),
  143.                             MS_NONE
  144.                         } ;
  145. static DIALOGL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
  146.                               44, 234, 293, 253,15, 4, 8,
  147.                             MS_DFRAMEL40 | MS_FRAMEL40,
  148.                             NULL,   0,   0
  149.                         } ;
  150.  
  151. /* baseV00InputMesId[1] */
  152.  
  153. static MMIPACKET d008 = {    &baseV00InputMesId[1],
  154.                             &baseV00InputDialogId[1],
  155.                             &MJ_MSGL40,
  156.                             OFFSET(MSGL40),
  157.                             MS_NONE
  158.                         } ;
  159. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  160.                               47, 234, 289, 253, 0,15, 8,
  161.                             MS_NONEL40,
  162.                             " ",
  163.                                1,  12,  12,
  164.                             MS_NONEL40,
  165.                                0,   0
  166.                         } ;
  167.  
  168. /* baseV00MesId[0] */
  169.  
  170. static MMIPACKET d009 = {    &baseV00MesId[0],
  171.                             &baseV00DialogId,
  172.                             &MJ_MSGL40,
  173.                             OFFSET(MSGL40),
  174.                             MS_NONE
  175.                         } ;
  176. static MSGL40    d009d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  177.                               90, 117, 246, 136, 0,15, 8,
  178.                             MS_NONEL40,
  179.                             "î┤ ëµ ât â@ âC âï",
  180.                                1,  12,  12,
  181.                             MS_NONEL40,
  182.                                0,   0
  183.                         } ;
  184.  
  185. /* baseV00MesId[1] */
  186.  
  187. static MMIPACKET d010 = {    &baseV00MesId[1],
  188.                             &baseV00DialogId,
  189.                             &MJ_MSGL40,
  190.                             OFFSET(MSGL40),
  191.                             MS_NONE
  192.                         } ;
  193. static MSGL40    d010d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  194.                              153, 163, 183, 174, 0,15, 8,
  195.                             MS_NONEL40,
  196.                             "ü½",
  197.                                1,  12,  12,
  198.                             MS_NONEL40,
  199.                                0,   0
  200.                         } ;
  201.  
  202. /* baseV00MesId[4] */
  203.  
  204. static MMIPACKET d011 = {    &baseV00MesId[4],
  205.                             &baseV00DialogId,
  206.                             &MJ_MSGL40,
  207.                             OFFSET(MSGL40),
  208.                             MS_NONE
  209.                         } ;
  210. static MSGL40    d011d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  211.                               90, 177, 246, 196, 0,15, 8,
  212.                             MS_NONEL40,
  213.                             "î┤ ëµ é╠ ì─ É╢",
  214.                                1,  12,  12,
  215.                             MS_NONEL40,
  216.                                0,   0
  217.                         } ;
  218.  
  219. /* baseV00MesId[3] */
  220.  
  221. static MMIPACKET d012 = {    &baseV00MesId[3],
  222.                             &baseV00DialogId,
  223.                             &MJ_MSGL40,
  224.                             OFFSET(MSGL40),
  225.                             MS_NONE
  226.                         } ;
  227. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  228.                              153, 199, 183, 210, 0,15, 8,
  229.                             MS_NONEL40,
  230.                             "ü½",
  231.                                1,  12,  12,
  232.                             MS_NONEL40,
  233.                                0,   0
  234.                         } ;
  235.  
  236. /* baseV00MesId[2] */
  237.  
  238. static MMIPACKET d013 = {    &baseV00MesId[2],
  239.                             &baseV00DialogId,
  240.                             &MJ_MSGL40,
  241.                             OFFSET(MSGL40),
  242.                             MS_NONE
  243.                         } ;
  244. static MSGL40    d013d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  245.                               90, 214, 246, 233, 0,15, 8,
  246.                             MS_NONEL40,
  247.                             "Åo ù═ ëµ ât â@ âC âï",
  248.                                1,  12,  12,
  249.                             MS_NONEL40,
  250.                                0,   0
  251.                         } ;
  252.  
  253. /* baseUnderTifDialogId */
  254.  
  255. static MMIPACKET d014 = {    &baseUnderTifDialogId,
  256.                             NULL,
  257.                             &MJ_DIALOGL40,
  258.                             OFFSET(DIALOGL40),
  259.                             MS_NONE
  260.                         } ;
  261. static DIALOGL40    d014d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  262.                               30, 371, 306, 431,15, 6, 8,
  263.                             MS_NONEL40,
  264.                             NULL,   0,   0
  265.                         } ;
  266.  
  267. /* baseUnderTifBtnId[0] */
  268.  
  269. static MMIPACKET d015 = {    &baseUnderTifBtnId[0],
  270.                             &baseUnderTifDialogId,
  271.                             &MJ_DBUTTONL40,
  272.                             OFFSET(DBUTTONL40),
  273.                             MS_NONE
  274.                         } ;
  275. static DBUTTONL40    d015d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  276.                               37, 377, 299, 425, 7, 4, 8,
  277.                             MS_PANELL40 | MS_FRAMEL40,
  278.                             selectFuncUnderTif,
  279.                             0x0000
  280.                         } ;
  281.  
  282. /* baseUnderMesId[0] */
  283.  
  284. static MMIPACKET d016 = {    &baseUnderMesId[0],
  285.                             &baseUnderTifDialogId,
  286.                             &MJ_MSGL40,
  287.                             OFFSET(MSGL40),
  288.                             MS_NONE
  289.                         } ;
  290. static MSGL40    d016d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  291.                               90, 380, 246, 399, 0,15, 8,
  292.                             MS_NONEL40,
  293.                             "éséhéeéeâtâ@âCâï",
  294.                                1,  12,  12,
  295.                             MS_NONEL40,
  296.                                0,   0
  297.                         } ;
  298.  
  299. /* baseUnderInputDialogId */
  300.  
  301. static MMIPACKET d017 = {    &baseUnderInputDialogId,
  302.                             &baseUnderTifDialogId,
  303.                             &MJ_DIALOGL40,
  304.                             OFFSET(DIALOGL40),
  305.                             MS_NONE
  306.                         } ;
  307. static DIALOGL40    d017d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
  308.                               44, 400, 293, 419,15, 4, 8,
  309.                             MS_DFRAMEL40 | MS_FRAMEL40,
  310.                             NULL,   0,   0
  311.                         } ;
  312.  
  313. /* baseUnderInputMesId */
  314.  
  315. static MMIPACKET d018 = {    &baseUnderInputMesId,
  316.                             &baseUnderInputDialogId,
  317.                             &MJ_MSGL40,
  318.                             OFFSET(MSGL40),
  319.                             MS_NONE
  320.                         } ;
  321. static MSGL40    d018d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  322.                               47, 400, 289, 419, 0,15, 8,
  323.                             MS_NONEL40,
  324.                             " ",
  325.                                1,  12,  12,
  326.                             MS_NONEL40,
  327.                                0,   0
  328.                         } ;
  329.  
  330. /* baseWaitDialogId */
  331.  
  332. static MMIPACKET d019 = {    &baseWaitDialogId,
  333.                             NULL,
  334.                             &MJ_DIALOGL40,
  335.                             OFFSET(DIALOGL40),
  336.                             MS